package cn.itcast.tools;

import cn.itcast.dto.PackageDTO;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 优惠套餐工具
 *
 * @author wys
 * @version V1.0
 * @date 2025-04-20 20:07
 */
@Component
public class PackageTools {

    @Tool(description = "查询所有流量套餐")
    public List<PackageDTO> getPackage() {
        List<PackageDTO> packageDTOList = new ArrayList<>();
        packageDTOList.add(new PackageDTO("经济卡", "39元", "10GB", "100分钟", "无", "无", "首月半价"));
        packageDTOList.add(new PackageDTO("畅享全家享", "99元", "50GB", "500分钟", "200M宽带+2张副卡", "12个月", "送视频会员月卡"));
        packageDTOList.add(new PackageDTO("全球通尊享", "199元", "不限量", "2000分钟", "国际漫游+5G优先", "24个月", "机场贵宾厅2次/年"));
        packageDTOList.add(new PackageDTO("学生青春卡", "59元", "30GB", "200分钟", "校园网加速", "6个月", "免流特定APP"));
        return packageDTOList;
    }
}
